<template>
  <div>
    <div class="itemHeadLeft">
      <el-icon size="24px"><CirclePlus /></el-icon>
      <span class="shopTop">添加商品</span>
    </div>
    <div class="AddForm">
      <el-form label-width="100px">
        <el-form-item label="商品名称" :model="item" :rules="rules" ref="itemAdd" label-width="100px">
          <el-input />
        </el-form-item>
        <el-form-item label="商品分类">
          <el-select placeholder="请选择">
            <el-option label="Zone one" value="shanghai" />
            <el-option label="Zone two" value="beijing" />
          </el-select>
        </el-form-item>
        <el-form-item label="商品品牌">
          <el-select placeholder="请选择">
            <el-option label="Zone one" value="shanghai" />
            <el-option label="Zone two" value="beijing" />
          </el-select>
        </el-form-item>
        <el-form-item label="商品规格">
          <el-select placeholder="请选择">
            <el-option label="Zone one" value="shanghai" />
            <el-option label="Zone two" value="beijing" />
          </el-select>
        </el-form-item>
        <el-form-item label="商品状态">
          <el-switch></el-switch>
        </el-form-item>
        <el-form-item label="商品描述">
          <el-input type="textarea" />
        </el-form-item>
        <div class="imgCard">
          <span>添加自定义图片</span>
          <el-upload
          action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15"
          list-type="picture-card"
        >
          <el-icon><Plus /></el-icon>
        </el-upload>
        </div>
        <el-form-item >
          <el-button type="primary" @click="onSubmit">添加</el-button>
          <el-button>取消</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ItemAdd',
  data () {
    return {
      from: {}
    }
  }
}
</script>

<style lang="scss" scoped>
.itemHeadLeft {
  display: flex;
  height: 60px;
}
.AddForm {
  width: 600px;
  margin: 0 auto;
  .imgCard{
    width: 550px;
    margin: 0 auto;
    margin-bottom: 15px;
  }
}

</style>
